package com.itheima;

import java.util.Random;
import java.util.Scanner;

public class KaoSi0204 {
    public static void main(String[] args) {
        int[] arr=new int[5];
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入第"+(i+1)+"个1-60之间的数");
            int num=sc.nextInt();
            arr[i]=num;
        }
        Random r= new Random();
        int num2=r.nextInt(9)+2;
        System.out.println("生成的随机数是"+num2);
        System.out.println("满足条件的数有：");
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]%num2!=0){
                System.out.print(arr[i]+" ");
            }
        }

    }
}
